package com.ruoyi.cpsp.mapper;

import com.ruoyi.cpsp.domain.RegulationTimes;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface RegulationTimesMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RegulationTimes record);

    int insertSelective(RegulationTimes record);

    RegulationTimes selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RegulationTimes record);

    int updateByPrimaryKey(RegulationTimes record);

    int deleteByRegulationDetailId(Integer id);

    int maxTimesByDetailId(Integer regulationDetailId);

    RegulationTimes selectByDetailIdAndTimes(@Param("regulationDetailId") Integer regulationDetailId,
                                             @Param("times") Integer times);

    List<RegulationTimes> selectByDetailId(Integer regulationDetailId);
}